﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Microsoft.EntityFrameworkCore;
using Digitalmes.Model.ProductionManagement;
using Digitalmes.Model;

namespace Digitalmes.ViewModel.ProductionManagement.ProdArchiveVMs
{
    public partial class ProdArchiveBatchVM : BaseBatchVM<ProductionArchive, ProdArchive_BatchEdit>
    {
        public ProdArchiveBatchVM()
        {
            ListVM = new ProdArchiveListVM();
            LinkedVM = new ProdArchive_BatchEdit();
        }

        public override bool DoBatchEdit()
        {
            
            return base.DoBatchEdit();
        }
    }

	/// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class ProdArchive_BatchEdit : BaseVM
    {

        
        [Display(Name = "_Model._ProdArchive._Sn")]
        public string Sn { get; set; }
        [Display(Name = "_Model._ProdArchive._ProductId")]
        public long? ProductId { get; set; }
        [Display(Name = "_Model._ProdArchive._ProductCode")]
        public string ProductCode { get; set; }
        [Display(Name = "_Model._ProdArchive._Wo")]
        public string Wo { get; set; }
        [Display(Name = "_Model._ProdArchive._LineId")]
        public long? LineId { get; set; }
        [Display(Name = "_Model._ProdArchive._LineCode")]
        public string LineCode { get; set; }
        [Display(Name = "_Model._ProdArchive._OpId")]
        public long? OpId { get; set; }
        [Display(Name = "_Model._ProdArchive._OpCode")]
        public string OpCode { get; set; }
        [Display(Name = "_Model._ProdArchive._RoutingId")]
        public long? RoutingId { get; set; }
        [Display(Name = "_Model._ProdArchive._RoutingCode")]
        public string RoutingCode { get; set; }
        [Display(Name = "_Model._ProdArchive._InboundTime")]
        public DateTime? InboundTime { get; set; }
        [Display(Name = "_Model._ProdArchive._Status")]
        public SnStatusEnum? Status { get; set; }
        [Display(Name = "_Model._ProdArchive._OutboundTime")]
        public DateTime? OutboundTime { get; set; }
        [Display(Name = "_Model._ProdArchive._Shift")]
        public string Shift { get; set; }
        [Display(Name = "_Model._ProdArchive._CycleTime")]
        public decimal? CycleTime { get; set; }

        protected override void InitVM()
        {
           
        }
    }

}